package com.example.understandvideo.service.transcode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@Data// lombok注解，给字段添加getter和setter
@XmlAccessorType(XmlAccessType.FIELD)// 映射所有的字段
@XmlRootElement(name = "joined")// XML根节点名称，此处为user
@AllArgsConstructor
@NoArgsConstructor
public class CloudJoin {
    @XmlAttribute
    private String id;
    private String inputtype;
    private String uri;
    private String programid;
    private String audiotrackid;
    private String subtitleid;
    private String audiochannelid;
    private String cropping;

    public static CloudJoin getDefault(String voicePath) {
        return new CloudJoin("-2", "LocalFile", voicePath, "0", "0", "-3", "-1", "0");
    }
}
